package com.kingyea.app.market.supplier.service;

import com.kingyea.app.market.supplier.bean.Supplier;

import java.util.Map;

/**
 * @author
 * @version v1.0.0
 * @description Supplier 接口
 * @date Created in 2018-02-09 17:47:43
 */
public interface SupplierService {

    /**
     * 通过ID查找对象
     *
     * @param supplierCode
     * @return
     */
    Supplier getById(Integer supplierCode) throws Exception;

    /**
     * 列表
     *
     * @param supplier
     * @return
     */
    Object list(Map<String, Object> supplier) throws Exception;

    /**
     * 删除
     *
     * @param supplierCode
     * @return
     */
    int deleteById(Integer supplierCode) throws Exception;

    /**
     * 添加
     *
     * @param supplier
     * @return
     */
    Object save(Map<String, Object> supplier) throws Exception;

    /**
     * 更新
     *
     * @param supplier
     * @return
     */
    Supplier update(Supplier supplier) throws Exception;

    /**
     * 关联查询  找出供应商已有权限的供应商和未有权限的供应商
     */
    Object getListBySupplier(Map<String, Object> obj) throws Exception;
}
